//
//  MoneyViewController.m
//  WGFGlobalHouse
//
//  Created by waiguofang on 15/4/15.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//  分销商－－－我的佣金

#import "MoneyViewController.h"
#import "TraderMoneyDetailViewController.h"
#import "StroeMoneyViewController.h"

@interface MoneyViewController ()

- (IBAction)tapView:(UIView *)sender;

@end

@implementation MoneyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.titleView setMianTitle:@"我的佣金"];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)tapView:(UIView *)sender
{
    NSInteger tag = sender.tag;
    if (tag == 0)
    {
        TraderMoneyDetailViewController *traderMoneyDetailVC = [[TraderMoneyDetailViewController alloc]initWithNibName:@"TraderMoneyDetailViewController" bundle:nil];
        [self.navigationController pushViewController:traderMoneyDetailVC animated:YES];

    }else
    {
        StroeMoneyViewController *vc = [[StroeMoneyViewController alloc]initWithNibName:@"StroeMoneyViewController" bundle:nil];
        if (tag == 1) {
             vc.viewFlag = isStoreMoneyView;
        }else
        {
            vc.viewFlag = isMiddleManMoneyView;
        }
       
        [self.navigationController pushViewController:vc animated:YES];
    }
}

@end
